package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.ZyComplaintSuggest;
import com.blb.zy_community.mapper.ZyComplaintSuggestMapper;
import com.blb.zy_community.service.IZyComplaintSuggestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 投诉建议  服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class ZyComplaintSuggestServiceImpl extends ServiceImpl<ZyComplaintSuggestMapper, ZyComplaintSuggest> implements IZyComplaintSuggestService {

    @Autowired
    private ZyComplaintSuggestMapper zyComplaintSuggestMapper;

    @Override
    public Page<ZyComplaintSuggest> findSuggest(Long current, Long size, String complaintSuggestType) {
        return zyComplaintSuggestMapper.getSuggestType(new Page<>(current,size),complaintSuggestType);
    }
}
